#!/usr/bin/env python

import sys
import random

def main():
    for line in sys.stdin:
        gene_id, seq = line.split()
        l = list(seq)
        random.shuffle(l)
        rand_seq = ''.join(l)
        print "%s\t%s" % (gene_id, rand_seq)

main()

